﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace BingZi.HY.Core.MailEngine
{
    public  class Execute
    {
        /// <summary>
        /// 构造
        /// </summary>
        static Execute()
        {
            ConfigurationManager.GetSection("mailConfig/smtpSettings");
           
        }
        /// <summary>
        /// 邮件发送
        /// </summary>
        /// <param name="msg"></param>
        public static void Send(Message msg)
        {
            ISmtpClient smtpClient = Smtp.Client;
            smtpClient.Send(msg);
        }


    }
}
